


package com.controller;

import com.model.HotComment;
import com.server.HotCommService;
import com.server.HotCommentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api("指定视频评论")
@RestController
@RequestMapping(value = "/hotComm")
public class HotCommController {
    @Autowired
    private HotCommService hotCommService;

    @CrossOrigin
    @RequestMapping(value = "/getHotComm", produces = "application/json;charset=utf-8", method = RequestMethod.GET)
    public List<HotComment> getHotComment(String bv){
        System.out.println("进入用户查询方法");
        return hotCommService.getHotComment(bv);
    }


}

